#pragma once

#include "command/ICommandProcessor.h"

class CommandProcessor : public ICommandProcessor
{
public:
	BEGIN_DEFINE_CLASS(CLSID_CommandProcessor)
		DEFINE_INTERFACE_ENTRY(ICommandProcessor)
	END_DEFINE_CLASS()

	CommandProcessor();
	virtual ~CommandProcessor();

	virtual void ExecuteCommand(ICommand* command);
	virtual void Undo();
	virtual void Redo();
};

AUTO_REGISTER_CLASSMAP_ENTRY(CommandProcessor)